package org.example.mapper; //数据操作层

import org.apache.ibatis.annotations.Param;
import org.example.common.ResponseMessage;
import org.example.entity.User;
import org.example.entity.dto.LoginDto;
import org.example.entity.dto.RegisterDto;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper{

    int insert(User userNew);

    List<User> find(@Param("Dept") String Dept);

    int save(RegisterDto registerDto);

//    ResponseMessage login(LoginDto loginDto);

    User selectByUsername(String userName);

    User selectById(Integer valueOf);

//    List<User> findByUserName(String userName);
}
